package com.lq;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 * @author huaxin
 *
 */

@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@MapperScan("com.lq.Dao")
public class ApplicationStart extends SpringBootServletInitializer{
	
	public static void main(String[] args) {
		 SpringApplication.run(ApplicationStart.class, args);
		 System.out.println("(♥ლ(´ڡ`ლ)ﾞ)ﾉﾞ  启动成功   ლ(´ڡ`ლ)ﾞ  \n");	              
	}
	
	//为SpringBoot打包项目用的
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(this.getClass());
	}
}
